{subtemplate jameson_read:gjj/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="uk-grid-collapse uk-margin-top paihangbang" uk-grid>
	<div class="uk-width-expand">
		<div class="border-cc">
			{if !isset($_GET['type'])}
				<div class="back-top">{lang jameson_read:quanbu}{lang jameson_read:paihang}</div>
				<div class="uk-padding-small index_paihang">
					<div class="uk-child-width-1-3 mtm mbm uk-grid-small" uk-grid>
						<div>
							<div class="border-cc uk-margin-bottom">
								<div class="back-top">{lang jameson_read:yuedubang}</div>
								<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
								{loop $paihangbang['yuedu'] $key $book}
								{if $key < $_G['jameson_read']['paihangbang']}
									<li class="cl uk-text-truncate">
										<span class="num num_{$key}">{eval echo $key+1;}</span>
										<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
									</li>
								{/if}
								{/loop}
								</ul>
							</div>
						</div>
						<div>
							<div class="border-cc uk-margin-bottom">
							<div class="back-top">{lang jameson_read:shoucangbang}</div>
							<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
							{loop $paihangbang['shoucang'] $key $book}
							{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl uk-text-truncate">
									<span class="num num_{$key}">{eval echo $key+1;}</span>
									<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
								</li>
							{/if}
							{/loop}
							</ul>
							</div>
						</div>
						<div>
							<div class="border-cc uk-margin-bottom">
							<div class="back-top">{lang jameson_read:haopingbang}</div>
							<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
							{loop $paihangbang['haoping'] $key $book}
							{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl uk-text-truncate">
									<span class="num num_{$key}">{eval echo $key+1;}</span>
									<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
								</li>
							{/if}
							{/loop}
							</ul>
							</div>
						</div>
						<div>
							<div class="border-cc uk-margin-bottom">
							<div class="back-top">{lang jameson_read:changxiaobang}</div>
							<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
							{loop $paihangbang['sell'] $key $book}
							{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl uk-text-truncate">
									<span class="num num_{$key}">{eval echo $key+1;}</span>
									<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
								</li>
							{/if}
							{/loop}
							</ul>
							</div>
						</div>
						<div>
							<div class="border-cc uk-margin-bottom">
							<div class="back-top">{lang jameson_read:yiwanjie}</div>
							<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
							{loop $paihangbang['end'] $key $book}
							{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl uk-text-truncate">
									<span class="num num_{$key}">{eval echo $key+1;}</span>
									<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
								</li>
							{/if}
							{/loop}
							</ul>
							</div>
						</div>
						<div>
							<div class="border-cc uk-margin-bottom">
							<div class="back-top">{lang jameson_read:xinshubang}</div>
							<ul class="uk-margin-remove uk-padding-remove uk-list-paihang pl5 pr5">
							{loop $paihangbang['zuixin'] $key $book}
							{if $key < $_G['jameson_read']['paihangbang']}
								<li class="cl uk-text-truncate">
									<span class="num num_{$key}">{eval echo $key+1;}</span>
									<a  href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
								</li>
							{/if}
							{/loop}
							</ul>
							</div>
						</div>
					</div>
				</div>
			{else}
				<div class="back-top">
				{if $type=='views'}
				{lang jameson_read:yuedubang}
				{elseif $type=='favores'}
				{lang jameson_read:shoucangbang}
				{elseif $type=='scores'}
				{lang jameson_read:haopingbang}
				{elseif $type=='sell'}
				{lang jameson_read:changxiaobang}
				{elseif $type=='addtime'}
				{lang jameson_read:xinshubang}
				{elseif $type=='cuigengpiao'}
				{lang jameson_read:cuigengpiaobang}
				{elseif $type=='yuepiao'}
				{lang jameson_read:yuepiaobang}
				{elseif $type=='tuijianpiao'}
				{lang jameson_read:tuijianpiaobang}
				{/if}
				</div>
				{if $books}
				<table class="uk-table uk-table-justify uk-table-small mt0 updatetable">
					<thead>
						<tr>
							<th class="tdcate">{lang jameson_read:fenlei}</th>
							<th>{lang jameson_read:shuming}</th>
							<th class="tdauthor uk-text-right">{lang jameson_read:zuozhe}</th>
						</tr>
					</thead>
					<tbody>
						{loop $books $k $c}
					    <tr>
					        <td class="tdcate">
					        	<a class="xg1 xs1" href="{eval echo jamesonurl('category',$book['category_id']);}">[{$c['category_name']}]</a>
					        </td>
					        <td class="uk-text-truncate">
					        	<a class="color-360" href="{eval echo jamesonurl('book',$c['book_id']);}">{$c['book_name']}</a>
					        </td>
					        <td class="uk-text-right xg1 xs1 tdauthor"><a href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$c['author']}">{$c['author']}</a> <span class="pipe"> &nbsp;</span> {eval echo dgmdate($c['addtime']);}</td>
					    </tr>
					    {/loop}
					</tbody>
				</table>
				<div class="uk-margin-top cl ">{$pageshow}</div>
				{else}
					<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:zanwujilu}</div>
				{/if}
			{/if}
		</div>
	</div>
	<div class="uk-width-small" style="width:230px">
		<div class="border-cc uk-margin-left">
			<div class="back-top">{lang jameson_read:paihangbang}</div>
			<ul class="uk-margin-remove uk-padding-remove uk-list-menu">
				<li class="{if !isset($_GET['type'])}uk-text-danger{/if}"><a href="{eval echo jamesonurl('paihang',0);}">{lang jameson_read:quanbu}{lang jameson_read:paihang}</a></li>
				<li class="{if $_GET['type']=='views'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=views">{lang jameson_read:yuedubang}</a></li>
				<li class="{if $_GET['type']=='favores'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=favores">{lang jameson_read:shoucangbang}</a></li>
				<li class="{if $_GET['type']=='sell'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=sell">{lang jameson_read:changxiaobang}</a></li>
				<li class="{if $_GET['type']=='scores'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=scores">{lang jameson_read:haopingbang}</a></li>
				<li class="{if $_GET['type']=='addtime'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=addtime">{lang jameson_read:xinshubang}</a></li>
				<li class="{if $_GET['type']=='yuepiao'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=yuepiao">{lang jameson_read:yuepiaobang}</a></li>
				<li class="{if $_GET['type']=='cuigengpiao'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=cuigengpiao">{lang jameson_read:cuigengpiaobang}</a></li>
				<li class="{if $_GET['type']=='tuijianpiao'}uk-text-danger{/if}"><a href="./plugin.php?id=jameson_read&contrl=index&act=paihang&type=tuijianpiao">{lang jameson_read:tuijianpiaobang}</a></li>
			</ul>
		</div>
		{if $adv[0]['adv']}
		<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
			{eval echo stripcslashes($adv[0]['adv']);}
		</div>
		{/if}
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:gjj/read_footer}